<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>${sysname}</title>
<%@ include file="/WEB-INF/jsp/include/css.jsp"%>
<%@ include file="/WEB-INF/jsp/include/js.jsp"%>
<%@ include file="/WEB-INF/jsp/include/datepicker.jsp"%>
<script type="text/javascript">
	$().ready(function() {
		$("input[name=beginDate]").datepicker();
		$("input[name=endDate]").datepicker();

		/*  $("select[name=supTypeId]").relate($("select[name=supplierid]"));
		 $("select[name=brand]").relate($("select[name=mobtypeid]")); */

	});
</script>
</head>

<body>
	<my:navigation text="供应商业务 >>　药品入库 >> 入库单列表" percent="90" />
	<form action="drugInManage_list.do" method="post">
		<table border="0" width="90%" align="center" style="margin-top:10px">
			<tr>
				<td width="6%">供应商</td>
				<td><select name="supplierid" class="text" style="width:180px">
						<option value="">--不限--</option>
						<c:forEach items="${supLists}" var="sup">
							<option value="${sup.supplierId}">${sup.supplierName}</option>
						</c:forEach>
				</select></td>
			</tr>
			<tr>
				<td width="6%">开始时间</td>
				<td><input class="text" style="width:180px" name="beginDate"
					value="${my:fmtDate(beginDate)}" readonly /></td>
				<td width="6%">结束时间</td>
				<td><input class="text" style="width:180px" name="endDate"
					value="${my:fmtDate(endDate)}" readonly /></td>
				<td colspan="5"></td>
				<td rowspan="2" align="right"><input type="submit"
					class="btn find" value="查询" /> <input type="button" class="btn ok"
					style="width:90px" value="添加入库"
					onclick="location='drugInManage_toAdd.do'" /></td>
			</tr>
		</table>
	</form>
	<table class="table" rowNum="15" width="90%" align="center">
		<tr>
			<th>单据号码</th>
			<th>供应商</th>
			<th>药品名称</th>
			<th>生产日期</th>
			<th>进价</th>
			<th>保质期</th>
			<th>数量</th>
			<th>总金额</th>
			<th>录入人</th>
			<th>备注</th>
			<th>操作</th>
		</tr>
		<c:forEach items="${pagination.dataList}" var="msi">
			<tr>
				<td>${msi.invoiceid}</td>
				<td>${msi.supName}</td>
				<td>${msi.drugName}</td>
				<td>${my:fmtDate(msi.productionDate)}</td>
				<td>${msi.buyprice}</td>
				<td>${msi.releaseDate}</td>
				<td>${msi.amount}</td>
				<td>${msi.totalmoney}</td>
				<td>${msi.inputName}</td>
				<td>${msi.remark}</td>
				<td><a href="${ctx}/drugInManage_toEditDrugIn.do?invoiceid=${msi.invoiceid}">修改</a> 
				    <a href="${ctx}/drugInManage_del.do?invoiceid=${msi.invoiceid}" onclick="return confirm('确定要删除吗？');">删除</a></td>
			</tr>
		</c:forEach>
	</table>
	${pagination.naviHtml}
</body>
</html>
